package com.coda.service.impl;

import com.coda.mapper.SayingMapper;
import com.coda.pojo.Saying;
import com.coda.service.SayingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 励志语录
 */
@Service
public class SayingServiceImpl implements SayingService {

    @Autowired
    private SayingMapper sayingMapper;
    /**
     * 获取所有励志语录
     * @return
     */
    @Override
    public List<Saying> getSaying() {

        return sayingMapper.getSaying();
    }
}
